home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / Jim's CDEFs v1.30 / demo Source ƒ / demoShell.r < prev    next >
Encoding:
Text File  |  1994-11-05  |  5.5 KB  |  226 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File        : demoShell.r
  3. //    Date        : August 24, 1994
  4. //    Author        : Jim Stout
  5. //    Purpose        : resource descriptions for demoShell.c
  6. //
  7. // -----------------------------------------------------------------------------
  8. #define SystemSevenOrLater 1
  9.  
  10. #include <Types.r>
  11.  
  12. resource 'MBAR' (128) {
  13.     {
  14.         /* [1] */    128,
  15.         /* [2] */    129,
  16.         /* [3] */    130,
  17.         /* [3] */    131
  18.     }
  19. };
  20.  
  21. resource 'MENU' (128) {
  22.     128, textMenuProc, 0x7FFFFFFD, enabled,    apple,
  23.     {
  24.         /* [1] */    "About Jim's CDEFs…", noIcon, noKey, noMark, plain,
  25.         /* [2] */    "-", noIcon, noKey, noMark, plain
  26.     }
  27. };
  28.  
  29. resource 'MENU' (129) {
  30.     129, textMenuProc, allEnabled, enabled, "File",
  31.     {
  32.         /* [1] */    "Close",     noIcon, "W",     noMark, plain
  33.         /* [2] */    "Quit",     noIcon, "Q",     noMark, plain
  34.     }
  35. };
  36.  
  37. resource 'MENU' (130) {
  38.     130, textMenuProc, 0x7FFFFFFD, enabled, "Edit",
  39.     {
  40.         /* [1] */    "Undo",     noIcon, "Z",     noMark, plain,
  41.         /* [2] */    "-",         noIcon, noKey,     noMark, plain,
  42.         /* [3] */    "Cut",         noIcon, "X",     noMark, plain,
  43.         /* [4] */    "Copy",     noIcon, "C",     noMark, plain,
  44.         /* [5] */    "Paste",     noIcon, "V",     noMark, plain,
  45.         /* [6] */    "Clear",     noIcon, noKey,     noMark, plain
  46.     }
  47. };
  48.  
  49. resource 'MENU' (131) {
  50.     131, textMenuProc, allEnabled, enabled, "Demos",
  51.     {
  52.         /* [1] */    "Window Demo",         noIcon, "1",     noMark, plain,
  53.         /* [2] */    "Dialog Demo",         noIcon, "2",     noMark, plain,
  54.         /* [3] */    "Compare Popups",     noIcon, "3",     noMark, plain,
  55.         /* [4] */    "Demo Tab 1",         noIcon, "4",     noMark, plain,
  56.         /* [5] */    "Demo Tab 2",         noIcon, "5",     noMark, plain,
  57.         /* [6] */    "Demo Tab 3",         noIcon, "6",     noMark, plain,
  58.         /* [7] */    "Demo Tab 4",         noIcon, "7",     noMark, plain
  59.     }
  60. };
  61.  
  62. resource 'MENU' (132) {
  63.     132, textMenuProc, allEnabled, enabled, "Show",
  64.     {
  65.         /* [1] */    "3D controls",     noIcon, noKey,     noMark, plain,
  66.         /* [2] */    "Popup menus",     noIcon, noKey,     noMark, plain,
  67.         /* [3] */    "Arrows",         noIcon, noKey,     noMark, plain,
  68.         /* [4] */    "Date & Time",     noIcon, noKey,     noMark, plain,
  69.         /* [5] */    "Sliders",         noIcon, noKey,     noMark, plain,
  70.         /* [6] */    "Progress Bars",noIcon, noKey,     noMark, plain
  71.     }
  72. };
  73.  
  74. resource 'mctb' (132) {
  75.     {
  76.         /* [1] */        132, 0,
  77.         {
  78.             /* [1] */    0, 0, 0,
  79.             /* [2] */    0, 0, 0,
  80.             /* [3] */    0, 0, 0,
  81.             /* [4] */    61166, 61166, 61166
  82.         }
  83.     }
  84. };
  85.  
  86. resource 'MENU' (133) {
  87.     133, textMenuProc, allEnabled, enabled, "Icon menu",
  88.     {
  89.         /* [1] */ "Small cicn",         44, noKey, noMark, plain,
  90.         /* [2] */ "Large cicn",            45, noKey, noMark, plain,
  91.         /* [3] */ "Very Large cicn",    46,    noKey, noMark, plain,
  92.         /* [4] */ "B&W Icon",            5,    noKey, noMark, plain,
  93.         /* [5] */ "B&W Icon (reduced)",    5,    "\0x1D", noMark, plain,
  94.         /* [6] */ "Small Icon (SICN)",    6,    "\0x1E", noMark, plain,
  95.         /* [7] */ "cicn (reduced)",    47,    "\0x1D", noMark, plain,
  96.     }
  97. };
  98. resource 'MENU' (134) {
  99.     134, textMenuProc,    allEnabled,    enabled,    "colored menu",
  100.     {
  101.         /* [1] */    "Menu items,",         noIcon, noKey, noMark, plain,
  102.         /* [2] */    "with colored",        noIcon, noKey, noMark, italic,
  103.         /* [2] */    "and styled",        noIcon, noKey, noMark, bold,
  104.         /* [2] */    "item text.",         noIcon, noKey, noMark, outline
  105.     }
  106. };
  107. resource 'mctb' (134) {
  108.     {
  109.         /* [1] */        134, 0,                    // menu colors
  110.         {
  111.             /* [1] */    0, 0, 0,
  112.             /* [2] */    0, 0, 0,
  113.             /* [3] */    0, 0, 0,
  114.             /* [4] */    61166, 61166, 61166        // bg is gray
  115.         },
  116.         /* [2] */        134, 1,                    // item 1 colors
  117.         {
  118.             /* [1] */    0, 0, 0,
  119.             /* [2] */    13107, 0, 39321,
  120.             /* [3] */    0, 0, 0,
  121.             /* [4] */    65535, 65535, 65535
  122.         }
  123.         /* [3] */        134, 2,                    // item 2 colors
  124.         {
  125.             /* [1] */    0, 0, 0,
  126.             /* [2] */    65535,0, 0,
  127.             /* [3] */    0, 0, 0,
  128.             /* [4] */    65535, 65535, 65535
  129.         },
  130.         /* [4] */        134, 3,
  131.         {
  132.             /* [1] */    0, 0, 0,
  133.             /* [2] */    0, 0, 65535,
  134.             /* [3] */    0, 0, 0,
  135.             /* [4] */    65535, 65535, 65535
  136.         },
  137.         /* [5] */        134, 4,
  138.         {
  139.             /* [1] */    0, 0, 0,
  140.             /* [2] */    65535, 0, 65535,
  141.             /* [3] */    0, 0, 0,
  142.             /* [4] */    65535, 65535, 65535
  143.         }
  144.     }
  145. };
  146. resource 'ALRT' (257, "About…", purgeable) {
  147.     {40, 40, 144, 363},
  148.     257,
  149.     {    /* array: 4 elements */
  150.         /* [1] */    OK, visible, silent,
  151.         /* [2] */    OK, visible, silent,
  152.         /* [3] */    OK, visible, silent,
  153.         /* [4] */    OK, visible, silent
  154.     },
  155. #if SystemSevenOrLater
  156.     alertPositionParentWindowScreen
  157. #endif
  158. };
  159.  
  160. resource 'DITL' (257, "About…", purgeable) {
  161.     {
  162.         /* [1] */    {72, 253, 92, 311},        Button         {    enabled, "OK"    },
  163.         /* [2] */    {11, 9, 59, 312},        StaticText    {    disabled,
  164.                             "Demonstration program for Jim’s CDEFs."        }
  165.     }
  166. };
  167.  
  168. resource 'ALRT' (258, "Error", purgeable) {
  169.     {40, 40, 180, 440},
  170.     258,
  171.     {
  172.         /* [1] */    OK, visible, sound1,
  173.         /* [2] */    OK, visible, sound1,
  174.         /* [3] */    OK, visible, sound1,
  175.         /* [4] */    OK, visible, sound1
  176.     },
  177. #if SystemSevenOrLater
  178.     alertPositionParentWindowScreen
  179. #endif
  180. };
  181.  
  182. resource 'DITL' (258, "Error", purgeable) {
  183.     {
  184.         /* [1] */    {100, 322, 120, 380},    Button         {    enabled, "Quit"    },
  185.         /* [2] */    {10, 90, 80, 380},        StaticText    {    disabled, "^0"    }
  186.     }
  187. };
  188.  
  189. resource 'STR#' (128, purgeable) {
  190.     {
  191.         /* [1] */    "Sorry, but a Mac Plus or better is needed "
  192.                     "to run this program.",
  193.         /* [2] */    "At least System 6 is required to run this "
  194.                     "program.",
  195.         /* [3] */    "Whoops! Couldn’t create the menus, gotta"
  196.                     " go…"
  197.     }
  198. };
  199.  
  200. resource 'STR#' (129, purgeable) {
  201.     {
  202.         /* [1] */    "Untitled ",
  203.         /* [2] */    "Radio ",
  204.         /* [3] */    "Check ",
  205.         /* [4] */    "Tog ",
  206.         /* [5] */    "Push "
  207.     }
  208. };
  209.  
  210. resource 'wctb' (128) {
  211.     {
  212.         /* [1] */    wContentColor, 52428, 52428, 52428,
  213.         /* [2] */    wFrameColor, 0, 0, 0,
  214.         /* [3] */    wTextColor, 0, 0, 0,
  215.         /* [4] */    wHiliteColor, 0, 0, 0,
  216.         /* [5] */    wTitleBarColor, 65535, 65535, 65535
  217.     }
  218. };
  219.  
  220. resource 'WIND' (128) {
  221.     {44, 4, 215, 379}, noGrowDocProc, invisible, goAway, 0x0,
  222.     "demoCDEF Window",
  223. #if SystemSevenOrLater
  224.     centerMainScreen
  225. #endif
  226. };